import java.math.*;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        String d = in.next();
        // 将输入的浮点数转换为 BigDecimal
        BigDecimal decimal = new BigDecimal(d);
        // 计算 2^n
        BigDecimal multiplier = BigDecimal.valueOf(2).pow(n);
        // 计算结果并四舍五入到最近的整数
        BigDecimal result = decimal.multiply(multiplier).setScale(0, RoundingMode.HALF_UP);
        // 输出结果
        System.out.println(result.toBigInteger());
    }
}
